// 版权归 瞄你个汪 所有。使用本代码应遵守相关法律法规和Apache 2.0开源许可要求。
package top.geeke.eunm;

/**
 * <p>
 *  系统错误响应消息枚举类
 * </p>
 *
 * @author 瞄你个汪
 * @since 2024/6/4 20:08
 */
public enum SysErrorEnum {
    R4000(4000, "域编码不能为空"),
    R4001(4001, "验证码不能为空"),
    R4002(4002, "验证码有误"),
    R4003(4003, "用户名或密码有误, 剩余登录%d次"),
    R4004(4004, "密码错误次数过多，账号已被禁用，请 %s 后重试"),
    R4005(4005, "账号被禁用"),
    R4006(4006, "账号已冻结"),
    R4007(4007, "无效租户"),
    R4008(4008, "租户已过期"),
    R4009(4009, "租户已禁用"),
    R4010(40010, "租户未绑定有效应用"),
    R4011(40011, "未找到有效的账号"),
    R4012(40012, "域编码不能为空"),
    R40013(4013, "账号未分配角色"),
    R40014(4014, "账号角色权限为空"),
    R401(401, "非法操作，未登录"),
    R403(403, "无权访问"),

    R5001(5001, "设置Redis缓存异常"),
    R5002(5002, "Redis类型转换异常");

    public final int value;

    public final String text;

    SysErrorEnum(int value, String text) {
        this.value = value;
        this.text = text;
    }
}
